home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 95
/
MOBICLIC 95.ISO
/
mac
/
MWB_DATA
/
TCH095
/
TCH095_00
/
TCH095_00.swf
/
scripts
/
frame_4
/
DoAction.as
Wrap
Text File
|
2007-06-28
|
750b
|
42 lines
function joueSon(my_MC, lListeSons, lNomSon, lFaitAvancer)
{
lPosSon = getPos(lListeSons,lNomSon);
my_MC.gSonJoue = lPosSon;
if(my_MC["my_comment_" + lPosSon] != undefined)
{
my_MC["my_comment_" + lPosSon].start();
if(lFaitAvancer === 1)
{
my_MC.gotoAndPlay(my_MC._currentframe + 1);
}
}
}
function gimme2digits(X)
{
if(X < 10)
{
lX = "0" + String(X);
}
else
{
lX = String(X);
}
return lX;
}
function getPos(lList, lValue)
{
lPresent = -1;
i = 0;
while(i <= lList.length)
{
if(lList[i] == lValue)
{
lPresent = i;
}
i++;
}
return lPresent;
}
gListeSons = gListST;
gSonJoue = 0;